/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-20 11:06:21
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2021-04-21 09:36:55
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */
import request from '@/utils/request'



// 保存修改
export const deleteSysRoleById = (roleId) => {
  return request({
      url: `${api_name}/deleteSysRoleById/${roleId}`,
      method: 'delete',
  })
}
// 保存修改
export const UpdateSysRole = (data) => {
  return request({
      url: '/admin/system/sysRole/updateSysRole',
      method: 'put',
      data
  })
}
const api_name = "/admin/system/sysRole"
// 新增角色方法
export const SaveSysRole = (data) => {
  return request({
    url: `${api_name}/save`,
    method: 'post',
    data
  })
}


// 获取角色分页列表
export const GetSysRoleListByPage = (pageNum, pageSize, queryDto) => {
  return request({
    url: `${api_name}/findByPage/${pageNum}/${pageSize}`,
    method: 'get',
    params: queryDto
  })
}



